package org.doubango.FrCall.Screens;

import org.doubango.FrCall.R;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;

public class NumberRegisterOk extends Activity {
	private Button nFinish;
	private EditText etName;//昵称
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.register_number_ok);
		nFinish = (Button) findViewById(R.id.n_reg_ok);
		etName=(EditText) findViewById(R.id.nickname);
		nFinish.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				Intent intent = new Intent(NumberRegisterOk.this,ScreenLogin.class);
				startActivity(intent);
				finish();
			}
		});
	}
	private boolean valete(){
		String s=etName.getText().toString();
		if(s.equals("")){
			Toast.makeText(getApplicationContext(), "昵称为必填",Toast.LENGTH_LONG).show();
			return false;
		}
		return true;
	}
}
